<template>
	<view class="page-box">
		<view class="apply-box" v-if="pageType == 1">
			<image src="../../static/icon_success.png" mode="widthFix"></image>
			<view>申请通过</view>
			<text>该经纪人已成功与你签约</text>
		</view>
		<view class="apply-box" v-else>
			<image src="../../static/icon_fail.png" mode="widthFix"></image>
			<view>申请拒绝</view>
			<text class="fail-box">未能与该新经纪人签约</text>
		</view>
		<view class="big-btn" @click="switchTabPage('mine')">返回</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				pageType: 0
			}
		},
		onLoad(option) {
			this.pageType = JSON.parse(decodeURIComponent(option.param))
			uni.setNavigationBarTitle({
				title: this.pageType == 1 ? '申请通过' : '申请拒绝'
			})
		},
		methods: {
			
		}
	}
</script>

<style lang="scss" scoped>
	.apply-box {
		padding: 80rpx 0 60rpx;
		box-sizing: border-box;
		text-align: center;
		background: #FFF;
		
		image {
			display: block;
			margin: auto;
			width: 200rpx;
		}
		
		view {
			padding-top: 40rpx;
			font-weight: bold;
			font-size: 36rpx;
		}
		
		text {
			color: #676565;
		}
		
		.fail-box {
			display: inline-block;
			margin: auto;
			text-align: left;
			font-size: 24rpx;
		}
	}
	
	.big-btn {
		margin: 40rpx auto;
		width: 90vw;
		border-radius: 60rpx;
		line-height: 88rpx;
		text-align: center;
		color: #FFF;
		background: #f13b32;
	}
</style>
